package com.itheima.Dao;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.Setmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {


    /**
     * 根据日期查询
     *
     * @param orderDate
     * @return long
     */
    long findCountByOrderDate(Date orderDate);

    /**
     * 更新操作
     *
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 添加预约文件
     *
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    /**
     * 获取预约设置
     * @param date
     * @return List<map>
     */
    List<OrderSetting> getOrderSettingByMonth(Map map);

    /**
     * 添加预约设置
     * @param orderSetting
     */
//    void addOne(OrderSetting orderSetting);


    /**
     * 查询预约日期是否存在
     * @param parseString2Date
     * @return
     */
    OrderSetting findByOrderDate(Date parseString2Date);

    void editReservationsByOrderDate(OrderSetting orderSetting);

}